package com.wujie.hello.spring.cloud.web.admin.fegin.client;

import com.wujie.hello.spring.cloud.web.admin.fegin.client.impl.AdminClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wujie
 * @version 1.0.0:
 * @title AdminClient
 * @Description TODO
 * @dateTime 2020/9/4 13:06
 * @Copyright 2020-2021
 */
@FeignClient(value = "HELLO-SPRING-CLOUD-SERVER-ADMIN", fallbackFactory = AdminClientImpl.class)
public interface AdminClient {
    @RequestMapping(value = "hi", method = RequestMethod.GET)
    String sayHi(@RequestParam(value = "port") String port);
}
